package com.mapull.exception;

/**
 * @author mapull
 */
public class CommonException {

    public static void main(String[] args) {
        npeException(null);
    }

    private static void npeException(String name){
        if(name.equals("Tom")){
            System.out.println("这是 Tom");
        }
    }
}
